package com.yxzx.api.service.impl;

import com.yxzx.api.entity.Course;
import com.yxzx.api.mapper.CourseMapper;
import com.yxzx.api.service.ICourseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 课程表 服务实现类
 * </p>
 *
 * @author YWB
 * @since 2020-09-06
 */
@Service
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements ICourseService {

    @Override
    public boolean updateSaleCount(Long courseId) {
        return getBaseMapper().updateSaleCount(courseId);
    }
}
